package com.scapegoat.pay.point.service.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Repository;
import com.scapegoat.pay.common.core.dao.impl.BaseDaoImpl;
import com.scapegoat.pay.point.service.dao.RpPointAccountDao;
import com.scapegoat.pay.point.service.entity.RpPointAccount;


/**
 * 积分dao实现类
 *
 * @author walkman
 * @date 2017年10月17日 22:02:50
 */
@Repository
public class RpPointAccountDaoImpl extends BaseDaoImpl<RpPointAccount> implements RpPointAccountDao {

    public RpPointAccount getByUserNo(String userNo) {

        Map<String, Object> paramMap = new HashMap<String, Object>();
        paramMap.put("userNo", userNo);
        paramMap.put("isPessimist", true);
        return this.getSessionTemplate().selectOne(getStatement("getByUserNo"), paramMap);

    }
}